package com.wenguodong.demofirstt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/*
 *@Time：2023/4/16
 *@Author：Jelly
 * 默认位置，首页
 */
@Controller
public class HomeController {

    @GetMapping(value = {"/", "/home"})
    public String homePage() {
        return "home";
    }

    @GetMapping("/aboutWe")
    public String goToAboutWe() {
        return "aboutWe";
    }

    @GetMapping("/advice")
    public String goToAdvice(){
        return "advice";
    }

    @GetMapping("/join")
    public String joinWe(){
        return "join";
    }

    @GetMapping("/sponsor")
    public String sponsor(){
        return "sponsor";
    }

    @GetMapping("/use")
    public String use(){
        return "use";
    }

}
